package com.ls.controller.product;

import com.ls.controller.product.model.AddProductModel;
import com.ls.service.IProductService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * <p>
 * 会员套餐 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@Api(value = "会员套餐app相关接口", tags = "会员套餐app相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/thaliApp")
public class ProductAppController {
    private final IProductService service;
    /** app生成订单编号 */
    @GetMapping(value = "createOrderNum")
    public ResultData createOrderNum(Long productId) {
        return service.createOrderNum(productId);

    }
    /** app查询套餐列表 */
    @GetMapping("getProduct")
    public ResultData getProduct(Integer productType) {
        return service.getProduct(productType);
    }
}
